package com.lsx.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * 账单流水
 */
public class Account implements Serializable {
    /**
     * 账单id
     */
    private Integer aid;
    /**
     * 目标账单id
     */
    private Integer target_id;
    /**
     * 账单创建完成时间
     */
    private Date account_time;
    /**
     * 交易前余额
     */
    private Double old_account;
    /**
     * 交易金额
     */
    private Double transaction_account;
    /**
     * 交易后余额
     */
    private Double new_account;
    /**
     * 交易类型，1：充值；2：消费；3：退款；4：提现到款
     */
    private Integer account_type;

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public Integer getTarget_id() {
        return target_id;
    }

    public void setTarget_id(Integer target_id) {
        this.target_id = target_id;
    }

    public Date getAccount_time() {
        return account_time;
    }

    public void setAccount_time(Date account_time) {
        this.account_time = account_time;
    }

    public Double getOld_account() {
        return old_account;
    }

    public void setOld_account(Double old_account) {
        this.old_account = old_account;
    }

    public Double getTransaction_account() {
        return transaction_account;
    }

    public void setTransaction_account(Double transaction_account) {
        this.transaction_account = transaction_account;
    }

    public Double getNew_account() {
        return new_account;
    }

    public void setNew_account(Double new_account) {
        this.new_account = new_account;
    }

    public Integer getAccount_type() {
        return account_type;
    }

    public void setAccount_type(Integer account_type) {
        this.account_type = account_type;
    }

    @Override
    public String toString() {
        return "Account{" +
                "aid=" + aid +
                ", target_id=" + target_id +
                ", account_time=" + account_time +
                ", old_account=" + old_account +
                ", transaction_account=" + transaction_account +
                ", new_account=" + new_account +
                ", account_type=" + account_type +
                '}';
    }
}
